package com.fornknow.proxy;

public class TestProxy {
    public static void main(String[] args) {

        Dog dgoTarget = new DogImpl();

        Object proxy = MyProxyFactory.getProxy(dgoTarget);

        Dog dog = null;
        if(proxy instanceof Dog){
            dog = (Dog) proxy;
        }
        dog.info();
        dog.run();

    }


}
